package cn.ruituo.adv3;

import java.util.Random;
import java.util.UUID;

public class RandomTest {
    public static void main(String[] args) {
        Random r=new Random();
        System.out.println(">>>>>>>>>>>>>int");
        for(int i=1;i<=20;i++)
        {
            System.out.print(r.nextInt()+" ");
        }
        System.out.println();
        System.out.println(">>>>>>>>>>>>>double");
        for(int i=1;i<=20;i++)
        {
            System.out.print(r.nextDouble()+" ");
        }
        System.out.println();
        System.out.println(">>>>>>>>>>>>>boolean");
        for(int i=1;i<=20;i++)
        {
            System.out.print(r.nextBoolean()+" ");
        }
        System.out.println();
        System.out.println(">>>>>>>>>>>>>long");
        for(int i=1;i<=20;i++) {
            System.out.print(r.nextLong() + " ");
        }
        System.out.println();
        //>>>随机32个字符串
        for(int i=1;i<=20;i++){
            System.out.println(String.valueOf(UUID.randomUUID()));
        }
    }
}
